package top.fullj.remoting.provider;

/**
 * @author bruce.wu
 * @since 2022/2/14 15:21
 */
public class NetworkConfig {

    private String protocol;

    private String host;

    private int port;

    public NetworkConfig(String protocol, String host, int port) {
        this.protocol = protocol;
        this.host = host;
        this.port = port;
    }

    public String getProtocol() {
        return protocol;
    }

    public String getHost() {
        return host;
    }

    public int getPort() {
        return port;
    }

    @Override
    public String toString() {
        return String.format("%s://%s:%d", protocol, host, port);
    }

}
